/*
 * @Description:
 * @Author: maxyang
 * @Date: 2022-06-06 14:48:40
 * @LastEditTime: 2022-06-27 18:02:19
 * @LastEditors: liutq
 * @Reference:
 */
package admin

import (
	"github.com/maxyang107/jinglan/common"
	"github.com/maxyang107/jinglan/model/goods"
)

var (
	AdminIrrigService = &IrrigSer{}
)

type IrrigSer struct{}

func (i IrrigSer) GetIrrigation(goodsId uint) goods.IrrigationInfo {
	return *goods.GetIrrigation(goodsId)
}

func (i IrrigSer) SetIrrigation(query_ common.Irrigation) error {
	return goods.UpdateIrrigation(query_)
}

func (i IrrigSer) GetIrrigationList(param common.AdminGoodsList) *goods.IrrigationList {
	return goods.GetIrrigationList(param)
}
